package com.wanwu.channel.dao.inter;

import com.wanwu.channel.dao.condition.BaseCondition;
import com.wanwu.channel.dao.entity.ChannelMerchantsEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChannelMerchantsDao {

    int insert(ChannelMerchantsEntity record);

    int insertSelective(ChannelMerchantsEntity record);

    ChannelMerchantsEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ChannelMerchantsEntity record);

    int updateByPrimaryKey(ChannelMerchantsEntity record);

    ChannelMerchantsEntity selectByMerchantNo(@Param("merchantNo") String merchantNo);

    // 以下是后台的的方法
    List<ChannelMerchantsEntity> qryMerchantList(@Param("entity") ChannelMerchantsEntity entity, @Param("cond") BaseCondition condition);

    Integer countNum(@Param("entity") ChannelMerchantsEntity entity, @Param("cond") BaseCondition condition);
}